//
//  ALITradeDemoZipArchiver.m
//  NBUltimateDemo
//
//  Created by zhongweitao on 2020/2/18.
//  Copyright © 2020 shan yi. All rights reserved.
//

#import "ALITradeDemoZipArchiver.h"
//#import <ZipArchive/ZipArchive.h>
//#import <SSZipArchive/SSZipArchive.h>

#import "SSZipArchive.h"


@interface ALITradeDemoZipArchiverOp ()

@property (nonatomic, strong) SSZipArchive *innerArchiver;
@property (nonatomic, strong) NSString *zipFile;

@end

@implementation ALITradeDemoZipArchiverOp

- (BOOL)UnzipOpenFile:(NSString *)zipFile
{
//    _innerArchiver = [[SSZipArchive alloc] initWithPath:zipFile];
    _zipFile = zipFile;
    return YES;
}

- (BOOL)UnzipCloseFile
{
    return YES;//[self.innerArchiver close];
}

- (BOOL)UnzipFileTo:(NSString *)path overWrite:(BOOL)overwrite
{
    return [SSZipArchive unzipFileAtPath:self.zipFile toDestination:path];
}

@end

@implementation ALITradeDemoZipArchiver

- (id<TRVZipOperationProtocol>)zipArchiverInstance
{
    return [ALITradeDemoZipArchiverOp new];
}


@end


